<?php
include("header.html")
?>


require_once ('mysql_connect.php'); 
if (isset($_GET['g_garment_id'])) {
	$g_garment_id = (int) $_GET['g_garment_id'];
	if ($gid > 0) {
		$query = "SELECT g_garment_id, g_description, g_price FROM garments ORDER BY g_garment_id";
	}


echo '<table border="0" width="90%" cellspacing="3" cellpadding="3" align="center">
<tr>
<td align="left" width="20%"><b>Description</b></td>
<td align="right" width="20%"><b>Price</b></td>
</tr>';


$result = mysql_query ($dbc, $query);
while ($row = mysql_fetch_array ($result, MYSQL_ASSOC)) {

	
	echo "	<tr>
		<td align=\"left\"><a href=\"browse_prints.php?g_garment_id={$row['g_garment_id']}\"></a></td>
		<td align=\"left\"><a href=\"view_print.php?did={$row['g_description']}</a></td>
		<td align=\"right\">\${$row['g_price']}</td>
	</tr>\n";
	
} 

echo '</table>'; 

mysql_close($dbc); 

<?php
include("Footer.html")
?>